#ifndef __TLIB_H__
#define __TLIB_H__

#include "tinyos_types.h"

typedef struct bitmap_s {
    u32 bitmap;
} bitmap_t;

void bitmap_init(bitmap_t *btmap);
void bitmap_set(bitmap_t *btmap, u8 pos);
void bitmap_clear(bitmap_t *btmap, u8 pos);
u32 bitmap_get_first(bitmap_t *btmap);

#endif
